package org.example.maven.museumuser.service.impl;

import org.example.maven.museumuser.mapper.UserMapper;
import org.example.maven.museumuser.domain.pojo.user.UserLogin;
import org.example.maven.museumuser.domain.pojo.user.UserRegister;
import org.example.maven.museumuser.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public void register(UserRegister userRegister) {
        userMapper.userRegister(userRegister);
    }

    @Override
    public UserLogin getUserLoginByPhone(String phone) {
        return userMapper.getUserLoginByPhone(phone);
    }
}
